package com.example.myapplication.util;

import android.content.Context;
import android.content.SharedPreferences;

public class SpUtil {

    private Context context;

    public SpUtil(Context context) {
        this.context = context;
    }

    public String getValue(String spName, String key){
        SharedPreferences sp = this.context.getSharedPreferences(spName, Context.MODE_PRIVATE);
        return sp.getString(key,null);
    }
}
